package com.yipao.db.dao.coupon;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoCoupon;
import com.yipao.db.domain.YipaoCouponExample;

public interface CouponMapper {
    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    long countByExample(YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int deleteByExample(YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int insert(YipaoCoupon record);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int insertSelective(YipaoCoupon record);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    YipaoCoupon selectOneByExample(YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    YipaoCoupon selectOneByExampleSelective(@Param("example") YipaoCouponExample example, @Param("selective") YipaoCoupon.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    List<YipaoCoupon> selectByExampleSelective(@Param("example") YipaoCouponExample example, @Param("selective") YipaoCoupon.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    List<YipaoCoupon> selectByExample(YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    YipaoCoupon selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoCoupon.Column ... selective);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    YipaoCoupon selectByPrimaryKey(Integer id);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    YipaoCoupon selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") YipaoCoupon record, @Param("example") YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") YipaoCoupon record, @Param("example") YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(YipaoCoupon record);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(YipaoCoupon record);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int logicalDeleteByExample(@Param("example") YipaoCouponExample example);

    /**

     * This method corresponds to the database table yipao_coupon
     *
     * @mbg.generated
     */
    int logicalDeleteByPrimaryKey(Integer id);
}
